|
Foxit PDF SDK
|
Public 成员函数 | |
| def | LayerTree (other) |
| 拷贝构造函数。 更多... | |
| def | GetDict () |
| 获取当前对象的字典。 更多... | |
| def | GetOCGs () |
| 从当前对象获取"OCGs" PDF数组。 更多... | |
| def | GetOCGsByPageIndex (page_index) |
| 获取在指定页面上找到的OCG对象数组。 更多... | |
| def | GetRootNode () |
| 获取根图层节点。 更多... | |
| def | IsEmpty () |
| 检查当前对象是否为空。 更多... | |
| def | SetBaseState (state) |
| 为默认配置中的所有图层设置基础状态。 更多... | |
静态 Public 属性 | |
| e_StateOFF = _fsdk.LayerTree_e_StateOFF | |
| 状态为关闭。 | |
| e_StateON = _fsdk.LayerTree_e_StateON | |
| 状态为开启。 | |
| e_StateUnchanged = _fsdk.LayerTree_e_StateUnchanged | |
| 状态为未改变。 | |
| e_StateUndefined = _fsdk.LayerTree_e_StateUndefined | |
| 状态为未定义。 | |
PDF图层节点存储在PDF图层树中。如果用户想要检索图层节点,用户必须首先从PDF文档 构造一个图层树对象,然后调用函数 FoxitPDFSDKPython2.LayerTree.GetRootNode 获取 整个图层树的根图层节点。然后,用户可以从根图层节点枚举图层树中的所有节点。
| def FoxitPDFSDKPython2.LayerTree.LayerTree | ( | other | ) |
拷贝构造函数。
| [in] | other | 另一个图层树对象。 |
| def FoxitPDFSDKPython2.LayerTree.GetDict | ( | ) |
获取当前对象的字典。
| def FoxitPDFSDKPython2.LayerTree.GetOCGs | ( | ) |
从当前对象获取"OCGs" PDF数组。
| def FoxitPDFSDKPython2.LayerTree.GetOCGsByPageIndex | ( | page_index | ) |
获取在指定页面上找到的OCG对象数组。
| [in] | page_index | 要检索的子项的页面索引。有效范围:从0到(数量-1)。 数量由函数 FoxitPDFSDKPython2.PDFDoc.GetPageCount 返回。 |
| def FoxitPDFSDKPython2.LayerTree.GetRootNode | ( | ) |
获取根图层节点。
获取根图层节点后,用户可以通过LayerNode类的函数 枚举当前图层树中的所有图层节点。
| def FoxitPDFSDKPython2.LayerTree.IsEmpty | ( | ) |
检查当前对象是否为空。
当当前对象为空时,表示当前对象无用。
| def FoxitPDFSDKPython2.LayerTree.SetBaseState | ( | state | ) |
为默认配置中的所有图层设置基础状态。
如果用户希望新状态对渲染结果生效,请在此函数成功后构造一个新的图层上下文对象, 然后使用新的LayerContext来渲染器进行渲染。
| [in] | state | 图层用途状态。请参考从 FoxitPDFSDKPython2.LayerTree.e_StateON 开始的值, 应该是这些值中的一个,除了 FoxitPDFSDKPython2.LayerTree.e_StateUndefined 。 |